package com.ChenYaRou.www.controller.servlet;

import com.ChenYaRou.www.controller.ShopServletController;

import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @ClassName UpdateFoodServlet
 * @Description TODO
 * @Author 86183
 * @Date 2022/5/12 19:36
 * @Version 1.0
 **/
@MultipartConfig
public class UpdateFoodServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        ShopServletController controller = new ShopServletController();
        controller.updateFood(req, resp);
    }

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        doGet(req, resp);
    }
}
